package org.dream.zt;

import java.util.List;

import org.dream.domain.RisewidthResult;
import org.dream.persistence.BaseDAOImpl;
import org.dream.persistence.HibernateSessionFactory;

/**
 * 
 * @author qiuriyuchen E-mail:panpan_001@126.com
 */
public class RisewidthResultDAOImpl extends BaseDAOImpl implements RisewidthResultDAO {
	public List<RisewidthResult> findRisewidthResults(Double risewidth) {
		return HibernateSessionFactory.getSession()
				.createQuery("from RisewidthResult where statisticsWidth=:statisticsWidth order by statisticsDay")
				.setParameter("statisticsWidth", risewidth).list();
	}
}
